import request from '@/utils/request'

// 查询保养任务列表
export function listTDeviceMaintenanceTask(query) {
  return request({
    url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask/tasklist',
    method: 'get',
    params: query
  })
}

// 完成保养任务
export function completeTask(id) {
  return request({
    url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask/complete/' + id,
    method: 'post'
  })
}

// 获取保养内容
export function getMaintainContent(id) {
  return request({
    url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask/contentlist/'+id,
    method: 'get'
  })
}
// // 查询保养任务详细
// export function getTDeviceMaintenanceTask(id) {
//   return request({
//     url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask/' + id,
//     method: 'get'
//   })
// }

// // 新增保养任务
// export function addTDeviceMaintenanceTask(data) {
//   return request({
//     url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask',
//     method: 'post',
//     data: data
//   })
// }

// // 修改保养任务
// export function updateTDeviceMaintenanceTask(data) {
//   return request({
//     url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask',
//     method: 'put',
//     data: data
//   })
// }

// // 删除保养任务
// export function delTDeviceMaintenanceTask(id) {
//   return request({
//     url: '/TDeviceMaintenanceTask/TDeviceMaintenanceTask/' + id,
//     method: 'delete'
//   })
// }
